package com.emergency.db.domain;

import com.emergency.base.domain.BaseEntity;
import com.emergency.db.domain.item.Item;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

//数据字典实体类
@Entity
@Table(name = "bas_dictionary")
public class Dictionary extends BaseEntity {
    private String isEnable;//是否启用.0.不启用；1.启用。默认1

    private String type;//类型

    private String code;//编码

    private String codeText;//编码文本

    private Long parent;//父Id

    private String alias;//枚举值别名

    private String editable;//是否可编辑？0.否；1.可。默认1.

    private Integer sortNum;//排序号

    public String getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(String isEnable) {
        this.isEnable = isEnable;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Long getParent() {
        return parent;
    }

    public void setParent(Long parent) {
        this.parent = parent;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getEditable() {
        return editable;
    }

    public void setEditable(String editable) {
        this.editable = editable;
    }

    public String getCodeText() {
        return codeText;
    }

    public void setCodeText(String codeText) {
        this.codeText = codeText;
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }
}
